const Mock = require('mockjs')

const data = Mock.mock({
  'items|10': [{
    id: '@increment',
    num: '@integer(20201314001, 20201314099)',
    'Account|1': ['test'
   
    ],
    'state|1': ['已关闭',
      '待发货',
      '已发货'
    ],
    imgUrl:'https://img.alicdn.com/imgextra/i2/725677994/O1CN015uKRDX28vIidmMgSy_!!0-item_pic.jpg_430x430q90.jpg',
    graduate_time: '@datetime',
    price: '￥@integer(100, 150)',
    'pay|1':['未支付','微信','支付宝'],
    source:'App订单',

    number: '@integer(1, 10)',
    numberOrder:'R@integer(20011024,20011050)'



  }]
})

module.exports = [{
  url: '/vue-admin-template/orders/list',
  type: 'get',
  response: () => {
    const items = data.items
    return {
      code: 20000,
      data: {
        total: items.length,
        items: items
      }
    }
  }
}]
